package com.vegetable.modules.entity.outbound.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UpdateOrderTimePO对象", description="更新订单时间PO")
public class UpdateOrderTimePO {

    @ApiModelProperty(value = "销售出库单ID", required = true)
    @NotNull(message = "销售出库单ID不能为空")
    private Long id;

    @ApiModelProperty(value = "订单时间", required = true)
    @NotNull(message = "订单时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date orderTime;
}